var should = require('should');
var friendHandler = require('../../../../app/servers/user/handler/friendHandler');
var config = require('../../../config');
var friendModel = require('../../../../app/models/friendModel');

suite('user.friendHandler.refuse', function () {
    setup(function (done) {
        friendModel.getByRoleId(config.other_role_id, function (err, model) {
            model.addRequest(config.another_role_id);
            model.toJSON();
            model.save(done);
        });
    });

    // suite('refuse', function () {
    //     test('拒绝好友', function (done) {
    //         var msg = {};
    //         var session = {};
    //         session.uid = config.other_role_id;

    //         var handler = new friendHandler();
    //         handler.refuse(msg, session, function (err, res) {
    //             done();
    //         });
    //     });

    //     test('删除所有申请好友', function (done) {
    //         var msg = {};
    //         var session = {};
    //         session.uid = config.other_role_id;

    //         var handler = new friendHandler();
    //         handler.refuseAll(msg, session, function (err, res) {
    //             res.code.should.equal(200);
    //             done();
    //         });
    //     });
    // });
});
